package Box2D.Collision
{
	import Box2D.Common.Math.b2Vec2;
	import Box2D.Common.b2Wrapper;
	
	/// Ray-cast output data. The ray hits at p1 + fraction * (p2 - p1), where p1 and p2
	/// come from b2RayCastInput.
	public class b2RayCastOutput extends b2Wrapper
	{
		private var _normal:b2Vec2;
		public function b2RayCastOutput()
		{
			super(callDirect('b2RayCastOutput_new'));
			_normal = new b2Vec2(0,0,wrapper);
		}
		
		public function get normal():b2Vec2{return _normal}
		public function set normal(value:b2Vec2):void{_normal.Copy(value)}
		
		public function get fraction():Number{return getNumber(8)}
		public function set fraction(value:Number):void{setNumber(8,value)}
	}
}